package depthtag.filter;
import java.io.File;


public class RawFileFilter extends javax.swing.filechooser.FileFilter {
	  
		@Override
		public boolean accept(File pathname) {  
		  String name = pathname.getName();
			if(name != null){
				name = name.toLowerCase();
				if(name.endsWith("cr2") || name.endsWith("crw") || name.endsWith("xmp") || name.endsWith("jpg") || name.endsWith("jpeg") || pathname.isDirectory()){
					return true;
				}
			}
			return false;
		}
		
		public String getDescription () {
			return "Picture-files";
		}
}
